package Array;

public class item162 {
    public int findPeakElement(int[] nums) {
       int max=Integer.MIN_VALUE;
       int index =0;
        for (int i = 0; i < nums.length ; i++) {
            if(nums[i]>max)
            {
                max =nums[i];
                index = i;
            }
        }
    return index;
    }
}
